{ "cells": [ { "cell_type": "markdown", "source": [ "# T-norm operators" ], "metadata": { "collapsed": false, "pycharm": { "name": "#%% md\n" } } }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", "\n", "import FuzzySystem as fs" ] }, { "cell_type": "markdown", "metadata": { "pycharm": { "name": "#%% md\n" } }, "source": [ "### Initial Fuzzy Set" ] }, { "cell_type": "code", "execution_count": null, "outputs": [], "source": [ "mf = fs.FuzzySet('MF1', fs.Gaussmf([2,5], universe=[0,10]))\n", "mf.show()" ], "metadata": { "collapsed": false, "pycharm": { "name": "#%%\n" } } }, { "cell_type": "markdown", "source": [ "### T-norm as the minimum" ], "metadata": { "collapsed": false, "pycharm": { "name": "#%% md\n" } } }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "mf.cut(.7)\n", "mf.fs_operator = 'min'\n", "mf.show()\n" ] }, { "cell_type": "markdown", "source": [ "### T-norm as the product" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": null, "metadata": { "pycharm": { "name": "#%%\n" } }, "outputs": [], "source": [ "mf.cut(.7)\n", "mf.fs_operator = 'prod'\n", "mf.show()\n" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.4" } }, "nbformat": 4, "nbformat_minor": 2 }